!macro preInit
    SetRegView 64
    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$LOCALAPPDATA\programs\xffz"
    WriteRegExpandStr HkCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$LOCALAPPDATA\programs\xffz"
    SetRegView 32
    WriteRegExpandStr HKLM "${INSTALL_REGISTRY_KEY}" InstallLocation "$LOCALAPPDATA\programs\xffz"
    WriteRegExpandStr HkCU "${INSTALL_REGISTRY_KEY}" InstallLocation "$LOCALAPPDATA\programs\xffz"
!macroend